arm: fix locking in create_p2m_entries
authorIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:58 +0000 (16:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:58 +0000 (16:23 +0100)
commit7224e175fbe4efa1ddfddf75ed1de3da886b825f
tree5310714b69b899f76098ba5441acbddc9f540467
parente225e4c702012017ebced7c9d13a745481956033
arm: fix locking in create_p2m_entries

For some reason we were holding the lock over only the unmaps at the end of
the function, rather than for the whole walk.

We might want to be more clever in the future, but for now lets just lock for
the whole walk+create process.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c